package com.luhan.fmmall.dao;

import com.luhan.fmmall.entity.Category;
import com.luhan.fmmall.entity.CategoryVO;
import com.luhan.fmmall.general.GeneralDao;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CategoryMapper extends GeneralDao<Category> {

    //1.连接查询 商品分类查询
    public List<CategoryVO> listCategories();

    //2.子查询
    public List<CategoryVO> listCategories2(int parentId);

    //查询一级类别
    public List<CategoryVO> selectFirstCategiries();
}